package com.buba.customer.pojo;

import java.util.Map;

/**
 * 用户地址的实体类
 */
public class CustomerAddr {
    private Integer customer_addr_id;
    private CustomerLogin customerLogin;
    //Integer类型和String类型  取决于该字段是否需要运算
    private String zip;
    private Integer province;
    private Integer city;
    private Integer district;
    //用于装入用户的省份、城市、地区
    private Map<String,China> addrMap;
    private String address;
    private Integer is_default;
    private String modified_time;


    @Override
    public String toString() {
        return "CustomerAddr{" +
                "customer_addr_id=" + customer_addr_id +
                ", customerLogin=" + customerLogin +
                ", zip='" + zip + '\'' +
                ", province=" + province +
                ", city=" + city +
                ", district=" + district +
                ", addrMap=" + addrMap +
                ", address='" + address + '\'' +
                ", is_default=" + is_default +
                ", modified_time='" + modified_time + '\'' +
                '}';
    }

    public Integer getCustomer_addr_id() {
        return customer_addr_id;
    }

    public void setCustomer_addr_id(Integer customer_addr_id) {
        this.customer_addr_id = customer_addr_id;
    }

    public CustomerLogin getCustomerLogin() {
        return customerLogin;
    }

    public void setCustomerLogin(CustomerLogin customerLogin) {
        this.customerLogin = customerLogin;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getDistrict() {
        return district;
    }

    public void setDistrict(Integer district) {
        this.district = district;
    }

    public Map<String, China> getAddrMap() {
        return addrMap;
    }

    public void setAddrMap(Map<String, China> addrMap) {
        this.addrMap = addrMap;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getIs_default() {
        return is_default;
    }

    public void setIs_default(Integer is_default) {
        this.is_default = is_default;
    }

    public String getModified_time() {
        return modified_time;
    }

    public void setModified_time(String modified_time) {
        this.modified_time = modified_time;
    }
}
